Creates a new subindex and attaches it to its parent's Subindexes collection.
Namespace:
C1.LiveLinq.IndexingAssembly: C1.LiveLinq (in C1.LiveLinq.dll)
Syntax
C# |
---|
public Subindex<T, TKey> Add<TKey>( Expression<Func<T, TKey>> keySelector ) |
Visual Basic |
---|
Public Function Add(Of TKey) ( _ keySelector As Expression(Of Func(Of T, TKey)) _ ) As Subindex(Of T, TKey) |
Parameters
- keySelector
- Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, TKey>)>)>>)>)>
Key selector expression of the subindex, see KeySelector.
Type Parameters
- TKey
- The type of the subindex key.